﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SimpleData.Tests.Helpers;

namespace SimpleData
{
	public static class SqlExtensions
	{

		public static SqlStrings Sqls( this DbApi api )
		{
			return new SqlStrings( api );
		}
	}


	public sealed class SqlStrings
	{
		public SqlStrings( DbApi api )
		{
			this.Api = api;
		}

		public DbApi Api
		{
			get;
			private set;
		}

		public void PopulateDB()
		{
			this.Api.ExecuteFile( "SimpleData.Tests.Resources.Sql.PopulateDB.sql" );
		}
	}
}
